package com.is416;

import android.app.Activity;
import android.app.ListActivity;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.Contacts.People;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.SimpleCursorAdapter;

public class ListA extends Activity
	{
		private ListView lv1;
		private String lv_arr[]={"Android","iPhone","BlackBerry","AndroidPeople"};
		@Override
			public void onCreate(Bundle icicle) 
			{
				super.onCreate(icicle);
				setContentView(R.layout.main);
				lv1=(ListView)findViewById(R.id.ListView01);
		
				// By using setAdpater method in listview we an add string array in list.
				lv1.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1 , lv_arr));
		}
	}